package com.miao.im.support.mq;

import org.springframework.amqp.rabbit.core.RabbitTemplate.ConfirmCallback;
import org.springframework.amqp.rabbit.core.RabbitTemplate.ReturnsCallback;


/**
 * @Auther: miaoguoxin
 * @Date: 2021/3/11 15:53
 * @Description:
 */
public interface IProducerMessageService {
    /**
    * 消息发送
    * @author miaoguoxin
    * @date 2021/3/11
    */
    void send(String exchange, String routingKey, String json, ConfirmCallback confirmCallback,ReturnsCallback returnsCallback);

    void send(String exchange, String routingKey, String json);
}
